package net.bxx2004.extand.util;

import java.io.File;
import java.io.PrintStream;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Logger {
    public static void log(String s){
        File file = new File("plugins/Extand/log.txt");
        try {
            PrintStream print = new PrintStream(file);
            Date date = new Date();
            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
            print.println("[" + format.format(date) + "] " + s);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
